package com.hackintosh.observer.oil;

import java.util.Observer;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/06/02
 * @modified By：
 * @version: 1.0
 */
public class CrudeOilFutures {

    public static void main(String[] args) {
        OilFutures oil = new OilFutures();
        Observer bull = new Bull();
        Observer bear = new Bear();
        oil.addObserver(bull);
        oil.addObserver(bear);
        oil.setPrice(10);
        oil.setPrice(-8);
    }
}
